home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Skunkware 5
/
Skunkware 5.iso
/
man
/
cat.n
/
info.n
< prev
next >
Wrap
Text File
|
1995-07-25
|
11KB
|
199 lines
iiiinnnnffffoooo((((nnnn)))) TTTTccccllll ((((7777....0000)))) iiiinnnnffffoooo((((nnnn))))
_________________________________________________________________
NNNNAAAAMMMMEEEE
info - Return information about the state of the Tcl
interpreter
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
iiiinnnnffffoooo _o_p_t_i_o_n ?_a_r_g _a_r_g ...?
_________________________________________________________________
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
This command provides information about various internals of
the Tcl interpreter. The legal _o_p_t_i_o_n's (which may be
abbreviated) are:
iiiinnnnffffoooo aaaarrrrggggssss _p_r_o_c_n_a_m_e
Returns a list containing the names of the arguments to
procedure _p_r_o_c_n_a_m_e, in order. _P_r_o_c_n_a_m_e must be the
name of a Tcl command procedure.
iiiinnnnffffoooo bbbbooooddddyyyy _p_r_o_c_n_a_m_e
Returns the body of procedure _p_r_o_c_n_a_m_e. _P_r_o_c_n_a_m_e must
be the name of a Tcl command procedure.
iiiinnnnffffoooo ccccmmmmddddccccoooouuuunnnntttt
Returns a count of the total number of commands that
have been invoked in this interpreter.
iiiinnnnffffoooo ccccoooommmmmmmmaaaannnnddddssss ?_p_a_t_t_e_r_n?
If _p_a_t_t_e_r_n isn't specified, returns a list of names of
all the Tcl commands, including both the built-in
commands written in C and the command procedures
defined using the pppprrrroooocccc command. If _p_a_t_t_e_r_n is
specified, only those names matching _p_a_t_t_e_r_n are
returned. Matching is determined using the same rules
as for ssssttttrrrriiiinnnngggg mmmmaaaattttcccchhhh.
iiiinnnnffffoooo ccccoooommmmpppplllleeeetttteeee _c_o_m_m_a_n_d
Returns 1 if _c_o_m_m_a_n_d is a complete Tcl command in the
sense of having no unclosed quotes, braces, brackets or
array element names, If the command doesn't appear to
be complete then 0 is returned. This command is
typically used in line-oriented input environments to
allow users to type in commands that span multiple
lines; if the command isn't complete, the script can
delay evaluating it until additional lines have been
typed to complete the command.
iiiinnnnffffoooo ddddeeeeffffaaaauuuulllltttt _p_r_o_c_n_a_m_e _a_r_g _v_a_r_n_a_m_e
_P_r_o_c_n_a_m_e must be the name of a Tcl command procedure
and _a_r_g must be the name of an argument to that
Page 1 (printed 7/17/95)
iiiinnnnffffoooo((((nnnn)))) TTTTccccllll ((((7777....0000)))) iiiinnnnffffoooo((((nnnn))))
procedure. If _a_r_g doesn't have a default value then
the command returns 0000. Otherwise it returns 1111 and
places the default value of _a_r_g into variable _v_a_r_n_a_m_e.
iiiinnnnffffoooo eeeexxxxiiiissssttttssss _v_a_r_N_a_m_e
Returns 1111 if the variable named _v_a_r_N_a_m_e exists in the
current context (either as a global or local variable),
returns 0000 otherwise.
iiiinnnnffffoooo gggglllloooobbbbaaaallllssss ?_p_a_t_t_e_r_n?
If _p_a_t_t_e_r_n isn't specified, returns a list of all the
names of currently-defined global variables. If
_p_a_t_t_e_r_n is specified, only those names matching _p_a_t_t_e_r_n
are returned. Matching is determined using the same
rules as for ssssttttrrrriiiinnnngggg mmmmaaaattttcccchhhh.
iiiinnnnffffoooo lllleeeevvvveeeellll ?_n_u_m_b_e_r?
If _n_u_m_b_e_r is not specified, this command returns a
number giving the stack level of the invoking
procedure, or 0 if the command is invoked at top-level.
If _n_u_m_b_e_r is specified, then the result is a list
consisting of the name and arguments for the procedure
call at level _n_u_m_b_e_r on the stack. If _n_u_m_b_e_r is
positive then it selects a particular stack level (1
refers to the top-most active procedure, 2 to the
procedure it called, and so on); otherwise it gives a
level relative to the current level (0 refers to the
current procedure, -1 to its caller, and so on). See
the uuuupppplllleeeevvvveeeellll command for more information on what stack
levels mean.
iiiinnnnffffoooo lllliiiibbbbrrrraaaarrrryyyy
Returns the name of the library directory in which
standard Tcl scripts are stored. The default value for
the library is compiled into Tcl, but it may be
overridden by setting the TCL_LIBRARY environment
variable. If there is no TCL_LIBRARY variable and no
compiled-in value then and error is generated. See the
lllliiiibbbbrrrraaaarrrryyyy manual entry for details of the facilities
provided by the Tcl script library. Normally each
application will have its own application-specific
script library in addition to the Tcl script library;
I suggest that each application set a global variable
with a name like $$$$_a_p_p____lllliiiibbbbrrrraaaarrrryyyy (where _a_p_p is the
application's name) to hold the location of that
application's library directory.
iiiinnnnffffoooo llllooooccccaaaallllssss ?_p_a_t_t_e_r_n?
If _p_a_t_t_e_r_n isn't specified, returns a list of all the
names of currently-defined local variables, including
arguments to the current procedure, if any. Variables
defined with the gggglllloooobbbbaaaallll and uuuuppppvvvvaaaarrrr commands will not be
Page 2 (printed 7/17/95)
iiiinnnnffffoooo((((nnnn)))) TTTTccccllll ((((7777....0000)))) iiiinnnnffffoooo((((nnnn))))
returned. If _p_a_t_t_e_r_n is specified, only those names
matching _p_a_t_t_e_r_n are returned. Matching is determined
using the same rules as for ssssttttrrrriiiinnnngggg mmmmaaaattttcccchhhh.
iiiinnnnffffoooo ppppaaaattttcccchhhhlllleeeevvvveeeellll
Returns a decimal integer giving the current patch |
level for Tcl. The patch level is incremented for each |
new release or patch, and it uniquely identifies an |
official version of Tcl.
iiiinnnnffffoooo pppprrrrooooccccssss ?_p_a_t_t_e_r_n?
If _p_a_t_t_e_r_n isn't specified, returns a list of all the
names of Tcl command procedures. If _p_a_t_t_e_r_n is
specified, only those names matching _p_a_t_t_e_r_n are
returned. Matching is determined using the same rules
as for ssssttttrrrriiiinnnngggg mmmmaaaattttcccchhhh.
iiiinnnnffffoooo ssssccccrrrriiiipppptttt
If a Tcl script file is currently being evaluated (i.e.
there is a call to TTTTccccllll____EEEEvvvvaaaallllFFFFiiiilllleeee active or there is an
active invocation of the ssssoooouuuurrrrcccceeee command), then this
command returns the name of the innermost file being
processed. Otherwise the command returns an empty
string.
iiiinnnnffffoooo ttttccccllllvvvveeeerrrrssssiiiioooonnnn
Returns the version number for this version of Tcl in
the form _x._y, where changes to _x represent major
changes with probable incompatibilities and changes to
_y represent small enhancements and bug fixes that
retain backward compatibility.
iiiinnnnffffoooo vvvvaaaarrrrssss ?_p_a_t_t_e_r_n?
If _p_a_t_t_e_r_n isn't specified, returns a list of all the
names of currently-visible variables, including both
locals and currently-visible globals. If _p_a_t_t_e_r_n is
specified, only those names matching _p_a_t_t_e_r_n are
returned. Matching is determined using the same rules
as for ssssttttrrrriiiinnnngggg mmmmaaaattttcccchhhh.
KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS
command, information, interpreter, level, procedure,
variable
Page 3 (printed 7/17/95)